// 入口文件
import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter);
import router from './router.js'
import app from './App.vue'

import axios from 'axios'; //导入axios
axios.defaults.baseURL = 'https://efddddc1-8b03-43af-bdb6-3444fd8e83c7.bspapp.com/http/';  //配置根域名
Vue.prototype.$ajax = axios;  //把axios挂载到Vue的原型上

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);

import echarts from 'echarts'
// import china from '../node_modules/echarts/map/json/china.json'
// echarts.registerMap('china', china)
import china from 'echarts/map/json/china.json' // 引入json文件
echarts.registerMap('china', china) // 在echarts中注册使用这个文件
Vue.prototype.$echarts = echarts

import store from './store/index.js'
var vm=new Vue({
    el:'#app',
    render: c=>c(app),
    router,
    store
})